runtime.gcControllerState.totalFree (field)
7 uses
runtime (current package)
arena.go#L793: gcController.totalFree.Add(int64(s.npages * pageSize))
mgcpacer.go#L360: totalFree atomic.Uint64 // total bytes freed
mgcpacer.go#L954: heapAlloc = c.totalAlloc.Load() - c.totalFree.Load() // Heap object bytes in use.
mgcsweep.go#L749: gcController.totalFree.Add(int64(nfreed) * int64(s.elemsize))
mgcsweep.go#L802: gcController.totalFree.Add(int64(size))
mstats.go#L480: if gcController.totalFree.Load() != totalFree {
mstats.go#L481: print("runtime: totalFree=", gcController.totalFree.Load(), "\n")
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |